{* Smarty *}
{extends file='include/base_with_menu.tpl'}

{block name="javascript"}
<script type="text/javascript">
(function($) {
    $(function() {
        $('#back').click(function() {
            window.location.href='/market/pr/contactor/list';
        });
    });
})(jQuery);
</script>
{/block}

{block name='content'}
<h3 class="blockTitle">{$contactor.name|escape}--教师列表</h3>
<form id="teacher_form" action="/market/pr/contactor/teacher/list">
<div class="layout">
<table class="tbData01" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <th style="width:auto;">学校</th>
        <th style="width:auto;">姓名</th>
        <th style="width:auto;">性别</th>
        <th style="width:auto;">年龄</th>
        <th style="width:auto;">职务</th>
        <th style="width:auto;">年级</th>
        <th style="width:auto;">班级</th>
        <th style="width:auto;">班别</th>
        <th style="width:auto;">手机</th>
        <th style="width:auto;">电话</th>
        <th style="width:auto;">任课科目</th>
        <th style="width:auto;">已提成</th>
        <th style="width:auto;">学员数</th>
        <th style="width:auto;">等级</th>
        <th style="width:auto;">操作</th>
    </tr>
    {foreach $teachers as $teacher}
    <tr {if $teacher@index is odd}class="even"{/if}>
        <td>{$teacher.school_name|escape}</td>
        <td>{$teacher.name|escape}</td>
        <td>{$gender_setting[$teacher.gender]|default:'-'|escape}</td>
        <td>{$teacher.birthday|default:'-'}</td>
        <td>{$teacher.job|default:'-'|escape}</td>
        <td>{$teacher.grade|default:'-'}</td>
        <td>{$teacher.class|default:'-'}</td>
        <td>{$discipline_setting[$teacher.discipline]|default:'-'|escape}</td>
        <td>{$teacher.mobile|default:'-'}</td>
        <td>{$teacher.telphone|default:'-'}</td>
        <td>{$class_type[$teacher.class_type]|default:'-'|escape}</td>
        <td>{$teacher.deduct}</td>
        <td>-</td>
        <td>{$teacher.level}</td>
        <td><a href="/market/pr/school/teacher/detail?teacher_id={$teacher.id}">编辑</a></td>
    </tr>
    {/foreach}
</table>
</div>
{include file='include/page.tpl'} 
{call name=pagination form_id="teacher_form" page=$pagination.page total=$pagination.total}
<input type="hidden" name="contactor_id" value="{$contactor.id}" />
</form>
<div class="layout">
    <button id="back">返回联系人管理</button>
</div>
{/block}
